package com.demoo.zjsu.util.javamail;

import java.util.ResourceBundle;

/**
 * Created by jshjsh on 2016/8/13.
 */
public class Mail {

    private static final int PORT = 587;

    private static final  String HOST = "smtp.qq.com";

    private static final String username;

    private static final String password;

    private static final String defaultEncoding;

    static {

       ResourceBundle resourceBundle = ResourceBundle.getBundle("email");

       username = resourceBundle.getString("username");

       password = resourceBundle.getString("password");

       defaultEncoding = resourceBundle.getString("defaultEncoding");

   }


    public static String getDefaultEncoding() {
        return defaultEncoding;
    }

    public static String getHOST() {
        return HOST;
    }

    public static String getPassword() {
        return password;
    }

    public static int getPORT() {
        return PORT;
    }

    public static String getUsername() {
        return username;
    }
}
